<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
<form action="?">
    <div class="tt"><?php echo $MOD['name'];?>搜索</div>
    <input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
    <input type="hidden" name="action" value="<?php echo $action;?>"/>
    <table cellpadding="2" cellspacing="1" class="tb">
        <tr>
            <td>
                &nbsp;<?php echo $fields_select;?>&nbsp;
                <input type="text" size="30" name="kw" value="<?php echo $kw;?>" title="关键词"/>&nbsp;
				<?php echo $order_select;?>&nbsp;
                <input type="text" name="psize" value="<?php echo $pagesize;?>" size="2" class="t_c" title="条/页"/>
                <input type="submit" value="搜 索" class="btn"/>&nbsp;
                <input type="button" value="重 置" class="btn" onclick="window.location='?moduleid=<?php echo $moduleid;?>&file=<?php echo $file;?>&action=<?php echo $action;?>';"/>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;<select name="datetype">
                <option value="addtime" <?php if ($datetype == 'addtime') echo 'selected';?>>认证日期</option>
            </select>&nbsp;
	            <?php echo Post::calender('fromdate', $fromdate, 'width:90'); ?>至 <?php echo Post::calender('todate', $todate, 'width:90', true); ?>&nbsp;

            </td>
        </tr>
    </table>
</form>
<form method="post">
    <div class="tt"><?php echo $menus[$menuid][0];?></div>
    <table cellpadding="2" cellspacing="1" class="tb">
        <tr>
            <th width="25"><input type="checkbox" onclick="checkall(this.form);"/></th>
            <th width="160">车主</th>
            <th width="120">认证时间</th>
            <th width="120">过期时间</th>
            <th width="80">状态</th>
            <th width="50">操作</th>
        </tr>
		<?php foreach ($lists as $k => $v) { ?>
        <tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
            <td><input type="checkbox" name="uname[]" value="<?php echo $v['username'];?>"/></td>
            <td>
                <a href="javascript:_user('<?php echo $v["username"];?>');"><?php echo $v['username'];?></a>
            </td>
            <td class="px11" title="添加时间"><?php echo date('Y-m-d',$v['addtime']);?></td>
            <td class="px11" title="过期时间"><?php echo date('Y-m-d',$v['expiretime']);?></td>
            <td class="px11">
	            <?php  if($v['status'] == 1 ){;?>使用中<?php }?>
            </td>
            <td>
	            <a href="javascript:_owncard('<?php echo $v["username"];?>');">查看卡密</a>
            </td>
        </tr>
		<?php }?>
    </table>
    <div class="btns">
	    <input type="submit" value=" 删除车主 " class="btn" onclick="if(confirm('确定要删除选中车主信息吗？此操作将不可撤销')){this.form.action='?moduleid=<?php echo $moduleid;?>&action=delmember'}else{return false;}"/>&nbsp;
    </div>
</form>
	<div class="pages"><?php echo  $do->getPn()->render();?></br>
	<span>共<?php echo $items;?>条/<?php echo $do->getPn()->getPages();?>页&nbsp;
		<?php if ($do->getPn()->getPages()>1){;?>
		到第</span>
		<input type="text" name="page-num-input" id="xd_page_jump"/>
		<span>页</span>
		<button type="submit" onclick="xdChangeAndLocation('page', $('#xd_page_jump').val())">确定</button>
		<?php };?></div>
<br/>
<script type="text/javascript">Menuon(<?php echo $menuid;?>);</script>
<?php include tpl('footer'); ?>